<%@ page session="false"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/my.tld" prefix="my"%>
<%@ taglib uri="/WEB-INF/tld/user.tld" prefix="user"%>
<%@ taglib uri="/WEB-INF/tld/activity.tld" prefix="activity"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<c:set var="sc" value="${my:city(cuser.city)}"/>
  <div id="_myarea">
    <div class="info_pop">
      <h3><ins> </ins><strong>已选：<c:if test="${empty sc}">全国</c:if><c:if test="${not empty sc}">${my:txt(sc.name)}</c:if></strong></h3>
      <p>请选择：
      <c:forEach var="c" items="${result}" varStatus="s">
        <a href="#" onclick="subscriptAdd('${basehost}user.do${p1}&do=Subscript.addPost3&cid=${c.id}','_pinpai');">${c.name}</a><span>&nbsp;</span>
        <c:if test="${not s.last}">-</c:if>
      </c:forEach>      
      </p>
    </div>
  </div>
  <div class="info_pop" id="_pinpai" style="display:none;">
  </div>
  <div class="info_pop" id="_fenlei" style="display:none;">
  </div>
  <div class="info_pop" id="_pfselected" style="display:none;">
  </div>
<script>
 function subscriptAdd(requestURL,displayDIV){    	 
    	$.ajax({            
            error: function() {
                alert('出错了！');
            },
            success: function(data) {
              if($(data).find('strong').size() > 0){
                $('#'+displayDIV).html(data).show();
              }                
              else{   
                $('#_pfselected').html(data).show();
                setTimeout(function() {
		            window.location.reload();
		        }, 5000);                 
              }
            },
            type: 'get',
            url: requestURL
        });       	
    }	
</script>